#include "../StdInc.h"
#include "SpreadOrderHelper.h"

namespace GSTrader
{
	namespace TradeStrategy
	{
		COrderHelper::COrderHelper()
		{
			m_bDone = false;
		}

		COrderHelper::~COrderHelper()
		{

		}

		bool COrderHelper::IsDone()
		{
			return m_bDone;
		}

		void COrderHelper::SetDone()
		{
			m_bDone = true;
		}

		CSellSideOrderHelper::CSellSideOrderHelper(CSellSideInstrumentStragegyImpl* pStrategy, CExecutionCommond* pExecutionCommond) : COrderHelper()
		{
			m_pStrategy = pStrategy;
			m_pExecutionCommond = pExecutionCommond;
			assert(pStrategy && pExecutionCommond);

			m_pOrder = &pExecutionCommond->m_Order;
		}

		CSellSideOrderHelper::~CSellSideOrderHelper()
		{

		}

		void CSellSideOrderHelper::OnNewMarketData(CDepthMarketData* pMarketData)
		{

		}

		void CSellSideOrderHelper::OnExecutionReport(CExecutionReport* pReport)
		{

		}


		/////////////////////////////////////////////////////////////////////////////

		CSpreadOrderHelper::CSpreadOrderHelper(CSpreadInstrumentStrategyImpl* pStrategy) : COrderHelper()
		{
	
		}

		CSpreadOrderHelper::~CSpreadOrderHelper()
		{
			_delarr(m_pComplate)
		}

		void CSpreadOrderHelper::OnNewMarketData(CDepthMarketData* pMarketData)
		{

		}

		void CSpreadOrderHelper::OnExecutionReport(CExecutionReport* pReport)
		{

		}
	}
}